package com.ndp.fb.util;

import com.alibaba.fastjson.JSONObject;

/**
 * Created by infi.he on 2016/5/10.
 */
public class Lang {

   public static String getString(JSONObject jsonObject, String key, String defaultValue) {
        if (jsonObject.containsKey(key)) {
            return jsonObject.getString(key);
        } else {
            return defaultValue;
        }
    }

}
